package com.tcm.content.enums;

import com.base.core.result.ResponseCodeEnum;

/**
 * 错误码枚举类
 * <p>
 * 科室系统，使用 1-004-000-000 段
 */
public enum BusinessCodeEnum implements ResponseCodeEnum {


    PANEL_ADD_FAIL(1010003001, "添加板块内容失败"),
    PANEL_DELETE_FAIL(1010003002,"删除板块内容失败"),
    PANEL_UPDATE_FAIL(1010003003,"更新板块内容失败"),
    FAIL_FIND_PANEL_SLIDE_BY_ID(1010003004,"通过id获取板块内容失败"),
    QUERY_FAIL_BY_ID(1010003005, "通过id获得板块失败"),
    QUERY_APPRAISES_FAIL(1010003006, "查询评价失败"),
    ADD_APPRAISES_FAIL(1010003007, "保存评价内容失败"),
    ;


    private final int code;
    private final String message;

    BusinessCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
